<?php
namespace app\common\model;




class Music extends Base
{
    public function getList($map = []){
        $rows =  $this
            ->where($map)
            ->order('sort,create_time desc')
            ->paginate('',false,['query'=>request()->param()]);
        return ['thisPage'=>$rows->currentPage(),'hasNext'=>$rows->hasMore(),'data'=>$rows->items()];
    }

    public function _list($map = []){
        return $this
            ->where($map)
            ->order('sort,create_time desc')
            ->paginate('',false,['query'=>request()->param()]);
    }

}